package com.coolwen.service.upload;

import com.coolwen.dao.UploadMapper;
import com.coolwen.entity.Upload;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by nieyu on 2016/9/1.
 */
@Service("StudentUploadService")
public class UploadServiceImpl implements UploadService {

    @Autowired
    private UploadMapper uploadMapper;

    @Override
    public List<Upload> selectByMd5(String md5) {
        return uploadMapper.selectByMd5(md5);
    }

    @Override
    public int insertSelective(Upload upload) {
        return uploadMapper.insertSelective(upload);
    }
}
